﻿using ApiLib.AppStart;
using ApiLib.Utils;

namespace ApiLib.Models;

/// <summary>
/// 
/// </summary>
public class BaseConfig : IBaseConfig
{
    /// <summary>
    /// 执行权重
    /// </summary>
    public int ExecuteWeight { get; set; } = 100;

    /// <summary>
    /// 
    /// </summary>
    public void Config()
    {
        if (GlobalConfig.BaseAuthorization == null && WebUtil.UseJwt)
        {
            GlobalConfig.BaseAuthorization = new BaseAuthorization();
        }
    }
}